import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/virtual-scroller',
    name: 'virtual-scroller',
    component: () => import('../views/VueVirtualScrollerView')
  },
  {
    path: '/dynamic-scroller',
    name: 'dynamic-scroller',
    component: () => import('../views/DynamicScrollerView')
  },
  {
    path: '/auto-scroller',
    name: 'auto-scroller',
    component: () => import('../views/AutoScrollerView.vue')
  },
  {
    path: '/virtual-auto-scroller',
    name: 'virtual-auto-scroller',
    component: () => import('../views/VirtualAutoScrollerView.vue')
  },
  {
    path: '/CustomSeamlessScrollerView',
    name: 'CustomSeamlessScrollerView',
    component: () => import('../views/CustomSeamlessScrollerView.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
